<?php
    require("../models/webconfig.php");
    require("../models/class.connection.php");
    require("../models/repositories/class.SectionRepository.php");
    $sectionRepository = new SectionRepository();
    if(isset($_POST['sectionID']))
    { 
        $sectionID = $_POST['sectionID'];
    } 
    else 
        exit();
    if($sectionRepository->Delete($sectionID) > 0){
        echo "1";
    }
    else{
        echo "0";
    }
?>